﻿namespace ACCOUNTING.LVY.Business
{
    using ACCOUNTING;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Data;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;

    public class clsThanhToanTheoMatHang
    {
        private string mChungTuDinhKem = "";
        private string mDienGiai = "";
        private string mHinhThucThanhToan = "";
        private string mKhoa = "";
        private string mKhoaDoiTuong = "";
        private string mKhoaDonVi = "";
        private string mKhoaNganHang = "";
        private string mKhoaNhanVien = "";
        private string mKhoaNhanVienSua = "";
        private string mKhoaNhanVienTao = "";
        private string mKhoaTaiKhoanChu = "";
        private string mKhoaTaiKhoanDoi = "";
        private string mLoaiTien = "";
        private string mNgayChungTu = "";
        private string mNgaySua = "";
        private string mNgayTao = "";
        private int mSend = 0;
        private string mSoChungTu = "";
        private double mSoTien = 0.0;
        private double mSoTienNT = 0.0;
        private double mTyGia = 0.0;

        public void ClearAll()
        {
            this.mKhoa = "";
            this.mSoChungTu = "";
            this.mNgayChungTu = "";
            this.mHinhThucThanhToan = "";
            this.mLoaiTien = "";
            this.mTyGia = 0.0;
            this.mKhoaTaiKhoanChu = "";
            this.mKhoaNganHang = "";
            this.mKhoaNhanVien = "";
            this.mKhoaDoiTuong = "";
            this.mChungTuDinhKem = "";
            this.mDienGiai = "";
            this.mSoTienNT = 0.0;
            this.mSoTien = 0.0;
            this.mKhoaDonVi = "";
            this.mSend = 0;
            this.mKhoaNhanVienTao = "";
            this.mNgayTao = "";
            this.mKhoaNhanVienSua = "";
            this.mNgaySua = "";
        }

        public void ClearTemp(string strKhoa)
        {
            string commandText = "DELETE FROM BH_ThanhToanTheoMatHangChiTietTmp WHERE KhoaPhieuThanhToan = '" + strKhoa.Trim() + "'";
            DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
        }

        public bool DeleteData(string strKhoa)
        {
            bool flag=false;
            IDataParameter[] commandParameters = new IDataParameter[4];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@Khoa", DbType.Int64, ParameterDirection.Input, strKhoa);
                commandParameters[1] = DBHelper.createParameter("@CheckAQ", DbType.Double, ParameterDirection.Input, 1);
                commandParameters[2] = DBHelper.createParameter("@pAmQuy", DbType.Double, ParameterDirection.Output, 0);
                commandParameters[3] = DBHelper.createParameter("@pError", DbType.Double, ParameterDirection.Output, 0);
                DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "BH_sp_ThanhToanTheoMatHangDel", commandParameters);
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(commandParameters[3].Value, 0, false))
                {
                    if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(commandParameters[2].Value, 0, false))
                    {
                        LVYModule.ShowWarning(modGeneral.Tranlated("Nghiệp vụ kh\x00f4ng thể thực hiện v\x00ec \x00e2m quỹ. Bạn vui l\x00f2ng kiểm tra lại!", ""));
                    }
                    return false;
                }
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public DataTable GetBanHangThanhToan(string NgayChungTu, string KhoaDonVi, string strKhoaThanhToan = "", string strKhoaNhanVien = "", string strKhoaKhachHang = "")
        {
            DataTable table;
            try
            {
                string str2 = " WHERE XB.LoaiChungTu = 'XB' AND XB.NgayChungTu <= '" + NgayChungTu + "' AND ((IsNull(XB.TienHang,0) - IsNull(XB.TienChietKhau,0) + IsNull(XB.TienThueVAT,0)) - IsNull(XB.DaThanhToan,0)) > 0 AND XB.GhiSo = 1  AND XB.KhoaDonVi = '" + KhoaDonVi + "'";
                if (strKhoaThanhToan.Trim() != "")
                {
                    str2 = str2 + " AND XB.Khoa NOT IN (SELECT KhoaChungTu FROM BH_ThanhToanChiTiet Where KhoaThanhToan = '" + strKhoaThanhToan.Trim() + "')";
                }
                if (strKhoaNhanVien.Trim() != "")
                {
                    str2 = str2 + " AND XB.KhoaNhanVienBanHang = '" + strKhoaNhanVien + "'";
                }
                if (strKhoaKhachHang.Trim() != "")
                {
                    str2 = str2 + " AND XB.KhoaDoiTuong = '" + strKhoaKhachHang + "'";
                }
                string commandText = " SELECT XB.Khoa, XB.SoChungTu, XB.NgayChungTu as Ngay, dbo.Char2Date(XB.NgayChungTu) As NgayChungTu, XB.SoHoaDon,dbo.Char2Date(XB.NgayThanhToan) as NgayThanhToan,  XB.LoaiTien,XB.TyGia, XB.TienHangNT - XB.TienChietKhauNT + XB.TienThueVATNT as TienHangNT,  XB.TienHang - XB.TienChietKhau + XB.TienThueVAT as TienHang, XB.DaThanhToanNT as DaThanhToan,  XB.KhoaTKThanhToan, TK.SoTaiKhoan, XB.KhoaDoiTuong, DT.Ten" + modGeneral.H_LANGUAGE + " as TenDoiTuong  FROM ST_XuatKho XB LEFT JOIN DM_TaiKhoan TK on XB.KhoaTKThanhToan = TK.Khoa  LEFT JOIN DM_DoiTuong DT on XB.KhoaDoiTuong = DT.Khoa " + str2 + " ORDER BY 3, 5";
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable GetDetails(string strKhoaThanhToan)
        {
            DataTable table;
            try
            {
                string commandText = "SELECT CTHD.Khoa, CT.KhoaHangHoa, HH.Ma, HH.TenViet As TenHang, CTHD.SoLoHang, dbo.Char2Date(CTHD.HanSuDung) As HanSuDung,  CTHD.SoSeri,  DVT.TenViet As DonViTinh,  CTHD.SoLuong, CTHD.TienBan - CTHD.TienChietKhau + CTHD.TienThue As TriGiaBan,  CTHD.SoLuongThuTien As SoLuongDaThu, CTHD.DaThuTien As TriGiaDaThu, IsNull(CT.SoLuongThuTien,0) As SoLuongThuTien, IsNull(CT.TriGiaThuTien,0) As TriGiaThuTien FROM ST_XuatKhoChiTiet CTHD  \tLEFT JOIN BH_ThanhToanTheoMatHangChiTiet CT ON CTHD.Khoa = CT.KhoaChiTiet \tLEFT JOIN DM_HangHoa HH ON CTHD.KhoaHangHoa = HH.KHOA \tLEFT JOIN DM_DonViTinh DVT ON CTHD.KhoaDonViTinh = DVT.Khoa  WHERE CT.KhoaPhieuThanhToan = '" + strKhoaThanhToan + "' ";
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable GetDetailsOfHoaDon(string strKhoa, string strKhoaThanhToan)
        {
            string commandText = " SELECT CT.Khoa, CT.KhoaHangHoa, HH.Ma As MaHang, HH.Ten" + modGeneral.H_LANGUAGE + " As TenHang,  CT.SoLoHang, dbo.Char2Date(CT.HanSuDung) As HanSuDung, DVT.Ten" + modGeneral.H_LANGUAGE + " As DonViTinh,  CT.SoLuong, CT.TienBan - CT.TienChietKhau + CT.TienThue As TriGia, CT.SoLuongThuTien As SoLuongThu, CT.DaThuTien As TriGiaThu FROM ST_XuatKhoChiTiet CT LEFT JOIN DM_HangHoa HH on CT.KhoaHangHoa = HH.Khoa LEFT JOIN DM_DonViTinh DVT ON CT.KhoaDonViTinh = DVT.Khoa  WHERE CT.KhoaPhieuXuat = '" + LVYModule.ReturnIfNull(strKhoa, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() + "'  AND CT.Khoa NOT IN (SELECT KhoaChiTiet FROM BH_ThanhToanTheoMatHangChiTiet WHERE KhoaPhieuThanhToan = '" + strKhoaThanhToan + "') ORDER BY CT.Khoa ";
            return DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
        }

        public DataTable GetList(string strConditions = "")
        {
            DataTable table;
            string str2 = "";
            try
            {
                if (strConditions.Trim() != "")
                {
                    str2 = " WHERE " + strConditions;
                }
                string commandText = "SELECT TT.Khoa, TT.SoChungTu, dbo.Char2Date(TT.NgayChungTu) as Ngay,  DT.Ten" + modGeneral.H_LANGUAGE + " as KhachHang, TT.SoTienNT, TT.SoTien,  TT.DienGiai  FROM BH_ThanhToanTheoMatHang TT left join DM_DoiTuong DT on TT.KhoaDoiTuong = DT.Khoa " + str2 + " ORDER BY TT.Ngay, TT.SoChungTu";
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable GetMuaHangThanhToan(string NgayChungTu, string KhoaDonVi, string strKhoaThanhToan = "", string strKhoaNhanVien = "", string strKhoaNhaCungCap = "")
        {
            DataTable table;
            IDataParameter[] commandParameters = new IDataParameter[6];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@NgayChungTu", DbType.Int64, ParameterDirection.Input, NgayChungTu);
                commandParameters[1] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, KhoaDonVi);
                commandParameters[2] = DBHelper.createParameter("@KhoaThanhToan", DbType.Int64, ParameterDirection.Input, strKhoaThanhToan);
                commandParameters[3] = DBHelper.createParameter("@KhoaNhanVien", DbType.Int64, ParameterDirection.Input, strKhoaNhanVien);
                commandParameters[4] = DBHelper.createParameter("@KhoaNhaCungCap", DbType.Int64, ParameterDirection.Input, strKhoaNhaCungCap);
                commandParameters[5] = DBHelper.createParameter("@Language", DbType.Int64, ParameterDirection.Input, modGeneral.H_LANGUAGE);
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.StoredProcedure, "MH_sp_GetHoaDonMuaHangThanhToan", commandParameters).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public bool Load(string pKhoa)
        {
            bool flag=false;
            try
            {
                string commandText = "SELECT * FROM BH_ThanhToanTheoMatHang WHERE Khoa = '" + pKhoa + "'";
                IDataReader dataReader = DBHelper.ExecuteReader(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
                if (dataReader.Read())
                {
                    this.mKhoa = Conversions.ToString(modGeneral.GetValue(dataReader, 0, modGeneral.typeOfColumn.GetString));
                    this.mSoChungTu = Conversions.ToString(modGeneral.GetValue(dataReader, 1, modGeneral.typeOfColumn.GetString));
                    this.mNgayChungTu = Conversions.ToString(modGeneral.GetValue(dataReader, 2, modGeneral.typeOfColumn.GetString));
                    this.mHinhThucThanhToan = Conversions.ToString(modGeneral.GetValue(dataReader, 3, modGeneral.typeOfColumn.GetString));
                    this.mLoaiTien = Conversions.ToString(modGeneral.GetValue(dataReader, 4, modGeneral.typeOfColumn.GetString));
                    this.mTyGia = Conversions.ToDouble(modGeneral.GetValue(dataReader, 5, modGeneral.typeOfColumn.GetDecimal));
                    this.mKhoaTaiKhoanChu = Conversions.ToString(modGeneral.GetValue(dataReader, 6, modGeneral.typeOfColumn.GetString));
                    this.mKhoaNganHang = Conversions.ToString(modGeneral.GetValue(dataReader, 7, modGeneral.typeOfColumn.GetString));
                    this.mKhoaTaiKhoanDoi = Conversions.ToString(modGeneral.GetValue(dataReader, 8, modGeneral.typeOfColumn.GetString));
                    this.mKhoaNhanVien = Conversions.ToString(modGeneral.GetValue(dataReader, 9, modGeneral.typeOfColumn.GetString));
                    this.mKhoaDoiTuong = Conversions.ToString(modGeneral.GetValue(dataReader, 10, modGeneral.typeOfColumn.GetString));
                    this.mChungTuDinhKem = Conversions.ToString(modGeneral.GetValue(dataReader, 11, modGeneral.typeOfColumn.GetString));
                    this.mDienGiai = Conversions.ToString(modGeneral.GetValue(dataReader, 12, modGeneral.typeOfColumn.GetString));
                    this.mSoTienNT = Conversions.ToDouble(modGeneral.GetValue(dataReader, 13, modGeneral.typeOfColumn.GetDecimal));
                    this.mSoTien = Conversions.ToDouble(modGeneral.GetValue(dataReader, 14, modGeneral.typeOfColumn.GetDecimal));
                    this.mKhoaDonVi = Conversions.ToString(modGeneral.GetValue(dataReader, 15, modGeneral.typeOfColumn.GetString));
                    this.mSend = Conversions.ToInteger(modGeneral.GetValue(dataReader, 0x10, modGeneral.typeOfColumn.GetInt32));
                    this.mKhoaNhanVienTao = Conversions.ToString(modGeneral.GetValue(dataReader, 0x11, modGeneral.typeOfColumn.GetString));
                    this.mNgayTao = Conversions.ToString(modGeneral.GetValue(dataReader, 0x12, modGeneral.typeOfColumn.GetString));
                    this.mKhoaNhanVienSua = Conversions.ToString(modGeneral.GetValue(dataReader, 0x13, modGeneral.typeOfColumn.GetString));
                    this.mNgaySua = Conversions.ToString(modGeneral.GetValue(dataReader, 20, modGeneral.typeOfColumn.GetString));
                }
                dataReader.Close();
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public bool Save()
        {
            bool flag=false;
            IDataParameter[] commandParameters = new IDataParameter[0x17];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@Khoa", DbType.Int64, ParameterDirection.Input, this.mKhoa);
                commandParameters[1] = DBHelper.createParameter("@SoChungTu", DbType.Int64, ParameterDirection.Input, this.mSoChungTu);
                commandParameters[2] = DBHelper.createParameter("@NgayChungTu", DbType.Int64, ParameterDirection.Input, this.mNgayChungTu);
                commandParameters[3] = DBHelper.createParameter("@HinhThucThanhToan", DbType.Int64, ParameterDirection.Input, this.mHinhThucThanhToan);
                commandParameters[4] = DBHelper.createParameter("@LoaiTien", DbType.Int64, ParameterDirection.Input, this.mLoaiTien);
                commandParameters[5] = DBHelper.createParameter("@TyGia", DbType.Date, ParameterDirection.Input, this.mTyGia);
                commandParameters[6] = DBHelper.createParameter("@KhoaTaiKhoanChu", DbType.Int64, ParameterDirection.Input, this.mKhoaTaiKhoanChu);
                commandParameters[7] = DBHelper.createParameter("@KhoaNganHang", DbType.Int64, ParameterDirection.Input, this.mKhoaNganHang);
                commandParameters[8] = DBHelper.createParameter("@KhoaTaiKhoanDoi", DbType.Int64, ParameterDirection.Input, this.mKhoaTaiKhoanDoi);
                commandParameters[9] = DBHelper.createParameter("@KhoaNhanVien", DbType.Int64, ParameterDirection.Input, this.mKhoaNhanVien);
                commandParameters[10] = DBHelper.createParameter("@KhoaDoiTuong", DbType.Int64, ParameterDirection.Input, this.mKhoaDoiTuong);
                commandParameters[11] = DBHelper.createParameter("@ChungTuDinhKem", DbType.Int64, ParameterDirection.Input, this.mChungTuDinhKem);
                commandParameters[12] = DBHelper.createParameter("@DienGiai", DbType.Int64, ParameterDirection.Input, this.mDienGiai);
                commandParameters[13] = DBHelper.createParameter("@SoTienNT", DbType.Date, ParameterDirection.Input, this.mSoTienNT);
                commandParameters[14] = DBHelper.createParameter("@SoTien", DbType.Date, ParameterDirection.Input, this.mSoTien);
                commandParameters[15] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, this.mKhoaDonVi);
                commandParameters[0x10] = DBHelper.createParameter("@Send", DbType.Double, ParameterDirection.Input, this.mSend);
                commandParameters[0x11] = DBHelper.createParameter("@KhoaNhanVienTao", DbType.Int64, ParameterDirection.Input, this.mKhoaNhanVienTao);
                commandParameters[0x12] = DBHelper.createParameter("@NgayTao", DbType.Int64, ParameterDirection.Input, this.mNgayTao);
                commandParameters[0x13] = DBHelper.createParameter("@KhoaNhanVienSua", DbType.Int64, ParameterDirection.Input, this.mKhoaNhanVienSua);
                commandParameters[20] = DBHelper.createParameter("@NgaySua", DbType.Int64, ParameterDirection.Input, this.mNgaySua);
                commandParameters[0x15] = DBHelper.createParameter("@pAmQuy", DbType.Double, ParameterDirection.Output, 0);
                commandParameters[0x16] = DBHelper.createParameter("@pError", DbType.Double, ParameterDirection.Output, 0);
                DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "BH_sp_ThanhToanTheoMatHang", commandParameters);
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(commandParameters[0x16].Value, 0, false))
                {
                    if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(commandParameters[0x15].Value, 0, false))
                    {
                        LVYModule.ShowWarning(modGeneral.Tranlated("Nghiệp vụ kh\x00f4ng thể thực hiện được v\x00ec \x00e2m quỹ!", ""));
                    }
                    return false;
                }
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public bool TrungSoChungTu(string pSoCT, string pKhoa)
        {
            bool flag2;
            string commandText = "";
            IDataParameter parameter = null;
            try
            {
                commandText = "SELECT * FROM BH_ThanhToanTheoMatHang WHERE RTRIM(SoChungTu) = '" + pSoCT.Trim() + "' AND RTRIM(Khoa) <> '" + pKhoa.Trim() + "'";
                bool flag = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[] { parameter }).Tables[0].Rows.Count > 0;
                flag2 = flag;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                flag2 = true;
                ProjectData.ClearProjectError();
                return flag2;
                ProjectData.ClearProjectError();
            }
            return flag2;
        }

        public string ChungTuDinhKem
        {
            get
            {
                return this.mChungTuDinhKem;
            }
            set
            {
                this.mChungTuDinhKem = value;
            }
        }

        public string DienGiai
        {
            get
            {
                return this.mDienGiai;
            }
            set
            {
                this.mDienGiai = value;
            }
        }

        public string HinhThucThanhToan
        {
            get
            {
                return this.mHinhThucThanhToan;
            }
            set
            {
                this.mHinhThucThanhToan = value;
            }
        }

        public string Khoa
        {
            get
            {
                return this.mKhoa;
            }
            set
            {
                this.mKhoa = value;
            }
        }

        public string KhoaDoiTuong
        {
            get
            {
                return this.mKhoaDoiTuong;
            }
            set
            {
                this.mKhoaDoiTuong = value;
            }
        }

        public string KhoaDonVi
        {
            get
            {
                return this.mKhoaDonVi;
            }
            set
            {
                this.mKhoaDonVi = value;
            }
        }

        public string KhoaNganHang
        {
            get
            {
                return this.mKhoaNganHang;
            }
            set
            {
                this.mKhoaNganHang = value;
            }
        }

        public string KhoaNhanVien
        {
            get
            {
                return this.mKhoaNhanVien;
            }
            set
            {
                this.mKhoaNhanVien = value;
            }
        }

        public string KhoaNhanVienSua
        {
            get
            {
                return this.mKhoaNhanVienSua;
            }
            set
            {
                this.mKhoaNhanVienSua = value;
            }
        }

        public string KhoaNhanVienTao
        {
            get
            {
                return this.mKhoaNhanVienTao;
            }
            set
            {
                this.mKhoaNhanVienTao = value;
            }
        }

        public string KhoaTaiKhoanChu
        {
            get
            {
                return this.mKhoaTaiKhoanChu;
            }
            set
            {
                this.mKhoaTaiKhoanChu = value;
            }
        }

        public string KhoaTaiKhoanDoi
        {
            get
            {
                return this.mKhoaTaiKhoanDoi;
            }
            set
            {
                this.mKhoaTaiKhoanDoi = value;
            }
        }

        public string LoaiTien
        {
            get
            {
                return this.mLoaiTien;
            }
            set
            {
                this.mLoaiTien = value;
            }
        }

        public string NgayChungTu
        {
            get
            {
                return this.mNgayChungTu;
            }
            set
            {
                this.mNgayChungTu = value;
            }
        }

        public string NgaySua
        {
            get
            {
                return this.mNgaySua;
            }
            set
            {
                this.mNgaySua = value;
            }
        }

        public string NgayTao
        {
            get
            {
                return this.mNgayTao;
            }
            set
            {
                this.mNgayTao = value;
            }
        }

        public int Send
        {
            get
            {
                return this.mSend;
            }
            set
            {
                this.mSend = value;
            }
        }

        public string SoChungTu
        {
            get
            {
                return this.mSoChungTu;
            }
            set
            {
                this.mSoChungTu = value;
            }
        }

        public double SoTien
        {
            get
            {
                return this.mSoTien;
            }
            set
            {
                this.mSoTien = value;
            }
        }

        public double SoTienNT
        {
            get
            {
                return this.mSoTienNT;
            }
            set
            {
                this.mSoTienNT = value;
            }
        }

        public double TyGia
        {
            get
            {
                return this.mTyGia;
            }
            set
            {
                this.mTyGia = value;
            }
        }
    }
}

